package com.sbpm.crmbpm.shared.data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * @deprecated
 * Created by U_M0PQL on 16.11.2014.
 */
public class InsuranceRequestInfo implements Serializable
{
    public static final String CLIENT_NAME = "ClientName";
    public static final String INSURED_EVENT_DESCRIPTION = "InsuredEventDescription";
    public static final String VIP = "VIP";
    public static final String EVENT_DATE = "EventDate";
    public static final String VERIFIED_REQUEST = "Verified";
    public static final String EXPERTISE_PASSED = "ExpertisePassed";
    public static final String DAMAGE_SUM = "DamageSum";
    public static final String APPROVED_BY_LEGAL = "ApprovedByLegal";
    public static final String APPROVED_BY_COMPLIANCE = "ApprovedByCompliance";
    public static final String APPROVED_BY_DIRECTOR = "ApprovedByDirector";
    private String clientName;
    private String insuredEventDescription;
    private Boolean vip;
    private Date eventDate;
    private Boolean verifiedRequest;
    private Boolean expertisePassed;
    private BigDecimal damageSum;
    private Boolean approvedByLegal;
    private Boolean approvedByCompliance;
    private Boolean approvedByDirector;

    public InsuranceRequestInfo()
    {
    }

    public InsuranceRequestInfo( Map<String, Object> data )
    {
        setClientName((String) data.get(CLIENT_NAME));
        setInsuredEventDescription((String) data.get(INSURED_EVENT_DESCRIPTION));
        setVip((Boolean) data.get(VIP));
        setEventDate((Date) data.get(EVENT_DATE));
        setVerifiedRequest((Boolean) data.get(VERIFIED_REQUEST));
        setExpertisePassed((Boolean) data.get(EXPERTISE_PASSED));
        setDamageSum((BigDecimal) data.get(DAMAGE_SUM));
        setApprovedByLegal((Boolean) data.get(APPROVED_BY_LEGAL));
        setApprovedByCompliance((Boolean) data.get(APPROVED_BY_COMPLIANCE));
        setApprovedByDirector((Boolean) data.get(APPROVED_BY_DIRECTOR));
    }

    public void saveToData( Map<String, Object> data )
    {
        data.put( CLIENT_NAME, getClientName() );
        data.put( INSURED_EVENT_DESCRIPTION, getInsuredEventDescription() );
        data.put( VIP, getVip() );
        data.put( EVENT_DATE, getEventDate() );
        data.put( VERIFIED_REQUEST, getVerifiedRequest() );
        data.put( EXPERTISE_PASSED, getExpertisePassed() );
        data.put( DAMAGE_SUM, getDamageSum() );
        data.put( APPROVED_BY_LEGAL, getApprovedByLegal() );
        data.put( APPROVED_BY_COMPLIANCE, getApprovedByCompliance() );
        data.put( APPROVED_BY_DIRECTOR, getApprovedByDirector() );
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getInsuredEventDescription() {
        return insuredEventDescription;
    }

    public void setInsuredEventDescription(String insuredEventDescription) {
        this.insuredEventDescription = insuredEventDescription;
    }

    public Date getEventDate() {
        return eventDate;
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    public boolean isVerifiedRequest() {
        return verifiedRequest;
    }

    public BigDecimal getDamageSum() {
        return damageSum;
    }

    public void setDamageSum(BigDecimal damageSum) {
        this.damageSum = damageSum;
    }

    public Boolean getVip() {
        return vip;
    }

    public void setVip(Boolean vip) {
        this.vip = vip;
    }

    public Boolean getVerifiedRequest() {
        return verifiedRequest;
    }

    public void setVerifiedRequest(Boolean verifiedRequest) {
        this.verifiedRequest = verifiedRequest;
    }

    public Boolean getExpertisePassed() {
        return expertisePassed;
    }

    public void setExpertisePassed(Boolean expertisePassed) {
        this.expertisePassed = expertisePassed;
    }

    public Boolean getApprovedByLegal() {
        return approvedByLegal;
    }

    public void setApprovedByLegal(Boolean approvedByLegal) {
        this.approvedByLegal = approvedByLegal;
    }

    public Boolean getApprovedByCompliance() {
        return approvedByCompliance;
    }

    public void setApprovedByCompliance(Boolean approvedByCompliance) {
        this.approvedByCompliance = approvedByCompliance;
    }

    public Boolean getApprovedByDirector() {
        return approvedByDirector;
    }

    public void setApprovedByDirector(Boolean approvedByDirector) {
        this.approvedByDirector = approvedByDirector;
    }
}
